package com.tcm.core.domain.vo;

import com.base.core.tree.TreeEntity;

import java.io.Serializable;
import java.util.List;

public class DepartmentVO implements TreeEntity<DepartmentVO>, Serializable {

    private Long id;

    private String name;

    private String alias;

    private Long parentId;

    private Byte level;

    private Byte status;

    private List<DepartmentVO> childList;

    private List<DepartmentVO> parentList;

    private boolean leaf;

    private boolean expanded;

    /**
     * 	实体编号（唯一标识）
     */
    @Override
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    @Override
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }


    @Override
    public void setChildList(List<DepartmentVO> childList){
        this.childList = childList;
    }

    @Override
    public List<DepartmentVO> getChildList(){
        return childList;
    }

    @Override
    public void setParentList(List<DepartmentVO> parentList){
        this.parentList = parentList;
    }

    @Override
    public List<DepartmentVO> getParentList(){
        return parentList;
    }

    @Override
    public void setLeaf(boolean leaf){
        this.leaf = leaf;
    }

    @Override
    public void setExpanded(boolean expanded){
        this.expanded = expanded;
    }

}